package com.yuma.springshiroredisthymeleaf.service.impl;

import com.yuma.springshiroredisthymeleaf.dao.RoleDao;
import com.yuma.springshiroredisthymeleaf.entity.Role;
import com.yuma.springshiroredisthymeleaf.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    RoleDao roleDao;

    @Override
    public List<Role> getByUserId(Integer userId) {
        return roleDao.selectByUserId(userId);
    }
}